﻿@using QDT.Common
@model IPagedList<QDT.Core.Deals.Deal>
<div class="main_title">
    管理员列表</div>
<div class="blank5">
</div>
<div class="button_row">

</div>
<div class="blank5">
</div>
<div class="search_row">
	<form name="search" action="@Url.Action("DealRecentRepay")" method="get">	
		编号：<input type="text" class="textbox" name="dealId" value="" size="8/">
		贷款名称：<input type="text" class="textbox" name="dealName" value="">
		分类：@Html.DropDownList("CateId")
		贷款人Id：
		<input type="text" class="textbox" name="userId" value="" size="10">
		<input type="submit" class="button" value="搜索">
	</form>
</div>
<div class="grid_box">
    <div class="grid_top">
    </div>
    @Html.Grid(Model).Columns(column =>
                                  {
                                      column.CheckBox(x => x.ID);
                                      column.For(x => x.ID).Named("编号").HeaderAttributes(style => "width:50px;");
                                      column.For(x => x.Name).Named("贷款名称").SortColumnName("Name");
                                      column.For(x => Html.F().GetCateName(x.CateId)).Named("投标类型").SortColumnName("CateId");
                                      column.For(x => Html.F().GetLoanTypeName(x.TypeId)).Named("借款用途").SortColumnName("TypeId");
                                      column.For(x => Html.F().GetUserName(x.UserId)).Named("借款人").SortColumnName("UserID");
                                      column.For(x => Html.F().GetDealStatus(x.DealStatus)).Named("投标状态").SortColumnName("DealStatus");
                                      column.For(x => x.IsRecommend ? "是" : "否").Named("是否推荐").SortColumnName("Name");
                                      column.For(x => x.Sort).Named("排序").SortColumnName("Sort");
                                      column.For(x => x.IsEffect ? "有效" : "无效").Named("状态").SortColumnName("IsEffect");
                                      column.Buttons(btns => btns.Add(x => Html.ActionLink("编辑", "EditDeal", new { id = x.ID }))
                                                                 .Add(x => Html.ScriptLink("删除", "del({0})".FormatWith(x.ID)))
                                                                 .Add(x => Html.ActionLink("投标列表", "LoadList", new { id = x.ID }))
                                                                 .Add(x => Html.ActionLink("预览", "PreviewDeal", new { id = x.ID }))
                                                                 );
                                  }).Complex(ViewData)
    <div class="grid_foot">
    </div>
</div>
<div class="blank5">
</div>
@Html.Pager(Model)
